<template>
  <el-config-provider :locale="store.state.locale">
    <!-- 头部 -->
    <headerCommon v-if="route.fullPath.indexOf('login') === -1" />
    <!-- 主体 -->
    <div class="container">
      <router-view></router-view>
    </div>
    <!-- 底部 -->
    <footerCommon v-if="route.fullPath.indexOf('login') === -1" />
  </el-config-provider>
</template>
<script setup lang="ts">
// import zhCn from 'element-plus/es/locale/lang/zh-cn'
// import en from 'element-plus/es/locale/lang/en'
// import { ref } from 'vue'
// import { useI18n } from 'vue-i18n'
import { useRoute } from 'vue-router'
import { useStore } from '@/store'
import headerCommon from '@/components/layout/commonHeader.vue'
import footerCommon from '@/components/layout/commonFooter.vue'
const route = useRoute()
const store = useStore()
// const { locale: localeLangauge } = useI18n()
// const locale = ref(zhCn)

// const changeLang = (language: any) => {
//   locale.value = language
//   localeLangauge.value = language.name
// }
</script>

<style scoped lang="scss">
@import '@/assets/style/index.scss';
</style>
